CC:=g++
CFLAGS:=-Wall -lpthread -g

TARGET:=main

${TARGET} : socket_tcp.o main.o net_wr.o file_wr.o
	${CC} $^ -o $@
	
%.o : %.c
	${CC} -c -g $@ $< 

clean:
	rm -rf *.o  main